package com.x_memteor.base_master.constants;

/**
 * Created by Administrator on 2016/9/20.
 */
public class

Constants {

    //是否打印log
    public static final boolean isShowLog = true;
    //Log的TAG
    public static final String TAG = "X_Meteor";
    //程序是否出现异常
    public static final boolean isCollectException = false;

    //开发环境
    public static final String BASE_URL_DEV = "http://t2.daibuzhe.net/apk/api/";
    //线上环境
    public static final String BASE_URL_RELEASE = "http://d.axs123.com/apk/api/";
    //线上环境
    public static final String BASE_WECHAT_URL_RELEASE = "http://t2.daibuzhe.net/wechat/axs/mac_scan?key=";

    //续电器串口名称
    public static final String COM_RELAY = "ttyS1";
    //传感器串口名称
    public static final String COM_SCALE = "ttyS2";

    public static final String LOCAL_HEART_BEAN = "local_heart_bean";
    public static final String LOCAL_NEW_HEART_BEAN = "local_new_heart_bean";
    public static final String LOCAL_TOKEN_BEAN = "local_token_bean";

    //新设备应答命令
    public static final String yingdaOrder = "CA 05 06 01 00 00 00 00 00 00";
    //新设备测阻命令
    public static final String cezuOrder = "CA 04 06 03 00 00 00 00 00 cb";
    //新设备标定命令
    public static final String biaodingOrder = "CA 04 06 02 00 00 00 00 00 cb";
    //新设备清零命令
    public static final String qinglingOrder = "CA 04 06 01 00 00 00 00 00 cb";
    //新设备待机命令
    public static final String daijiOrder = "CA 04 06 04 00 00 00 00 00 cb";

    //串口数据状态——待机状态 : 0
    public static final int Serial_Port_Await = 0;
    //串口数据状态——测量体重状态 : 10
    public static final int Serial_Port_Measure_Weight = 10;
    //串口数据状态——测量体重成功状态 : 20
    public static final int Serial_Port_Measure_Weight_Success = 20;
    //串口数据状态——测量体重失败状态 : 30
    public static final int Serial_Port_Measure_Weight_Fail = 30;
    //串口数据状态——测量电阻状态 : 40
    public static final int Serial_Port_Measure_Resistance = 40;
    //串口数据状态——测量电阻成功状态 : 50
    public static final int Serial_Port_Measure_Resistance_Success = 50;
    //串口数据状态——测量电阻失败状态 : 60
    public static final int Serial_Port_Measure_Resistance_Fail = 60;

    //系统状态——待机状态 : 0
    public static final int System_Step_Await = 0;
    //系统状态——测量体重状态 : 10
    public static final int System_Step_Measure_Weight = 10;
    //系统状态——测量电阻状态 : 40
    public static final int System_Step_Measure_Resistance = 40;
    //系统状态——显示二维码状态 : 100
    public static final int System_Step_Show_Qt = 100;

    //测量体重默认时间
    public static final int MEASURE_WEIGHT_TIME = 15;
    //测量电阻默认时间
    public static final int MEASURE_RESISTANCE_TIME = 12;
    //显示二维码默认时间
    public static final int SHOW_QR_TIME = 30;
}
